package cn.edu.ctbu.finaltest.service.TeacherService;


import cn.edu.ctbu.finaltest.domain.Teacher;
import cn.edu.ctbu.finaltest.vo.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TeacherService {

    List<Teacher> findAll();
    public R<List<Teacher>> findRAll();

    public R<List<Teacher>> findByRName(String name);
    public R<List<Teacher>> findByRNameLike(String name);
    Teacher findByTno(String Tno);
    public R<Teacher> findByRTno(String Tno);
    public R<List<Teacher>> findByRTnoLike(String Tno);

    public R<List<Teacher>> findByRAge(Integer age);
    public R<List<Teacher>> findByRAgeLike(Integer age);

    public R<List<Teacher>> findByRSex(String sex);
    public R<List<Teacher>> findByRSexLike(String sex);

    public R<List<Teacher>> findByRDept(String dept);
    public R<List<Teacher>> findByRDeptLike(String dept);
    List<Teacher> findByProf(String prof);
    public R<List<Teacher>> findByRProf(String prof);
    public R<List<Teacher>> findByRProfLike(String prof);

    public Teacher findByTnoAndPassword(String tno,String password);

    Teacher insert(Teacher teacher);
    Teacher update(Teacher teacher);
    void deleteId(Integer id);

}
